<script lang='ts' setup>
import { IFormItem } from "../../../type";

interface IProps {
  item: IFormItem
}
interface IEmit {
  (event: "fixData", data: any): void
}
const props = defineProps<IProps>()
const emit = defineEmits<IEmit>()
</script>

<template>
  <el-row :gutter="20">
    <el-col :span="12">
      <el-form-item label="最小值">
        <el-input-number v-model="item.min" />
      </el-form-item>
    </el-col>
    <el-col :span="12">
      <el-form-item label="最大值">
        <el-input-number v-model="item.max" />
      </el-form-item>
    </el-col>
    <el-col :span="12">
      <el-form-item label="步进">
        <el-input-number v-model="item.step" />
      </el-form-item>
    </el-col>
  </el-row>
      <el-form-item label="占位字符" prop="placeholder">
        <el-input v-model="item.placeholder" placeholder="未填入数据时显示的内容" :maxLength="20" clearable></el-input>
      </el-form-item>
</template>

<style lang='scss' scoped></style>